package team.stride.gmap;

import android.os.Parcel;
import android.os.Parcelable;

public class GePoint implements Parcelable {

	private int latitude;
	private int longitude;

	public GePoint() {

	}

	public GePoint(int latitude, int longitude) {
		this.latitude = latitude;
		this.longitude = longitude;
	}

	public int getLat() {
		return latitude;
	}

	public int getLong() {
		return longitude;
	}

	public void setLat(int latitude) {
		this.latitude = latitude;
	}

	public void setLong(int longitude) {
		this.longitude = longitude;
	}

	public GePoint(Parcel in) {

		this.latitude = in.readInt();
		this.longitude = in.readInt();
	}

	public int describeContents() {

		return 0;

	}

	public void writeToParcel(Parcel dest, int flags) {

		dest.writeInt(latitude);
		dest.writeInt(longitude);

	}

	public static final Parcelable.Creator<GePoint> CREATOR = new Parcelable.Creator<GePoint>() {

		public GePoint createFromParcel(Parcel in) {

			return new GePoint(in);

		}

		public GePoint[] newArray(int size) {

			return new GePoint[size];

		}

	};
}